package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author Scw
 * @Date 2020-08-08 18:09
 */
public enum ReissueExceptionEnum implements IResponseEnum {
    //补发商品信息
    INFO_NO_EXIST(500, "商品信息不存在！"),
    ORDER_STATUS_NOT_ALLOW(500, "当前订单状态不能发起申请！"),
    GOODS_STATUS_MAX_NUM(500, "当前商品数量超过购买数量！"),
    GOODS_STATUS_NOT_ALLOW(500, "当前商品状态不能发起申请！");

    private Integer code;
    private String message;

    ReissueExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}